<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlsolaris - Perl version 5 on Solaris systems - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlsolaris">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlsolaris.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlsolaris">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlsolaris">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlsolaris">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlsolaris">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlsolaris">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlsolaris">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlsolaris">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlsolaris">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlsolaris">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlsolaris">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlsolaris">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlsolaris">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlsolaris">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlsolaris">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlsolaris">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlsolaris">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlsolaris">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlsolaris">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlsolaris">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlsolaris">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlsolaris">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlsolaris">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlsolaris">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlsolaris">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlsolaris">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlsolaris">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlsolaris">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlsolaris">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlsolaris">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlsolaris">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlsolaris">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlsolaris">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlsolaris">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlsolaris">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlsolaris">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlsolaris">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlsolaris">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlsolaris">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlsolaris">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlsolaris">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlsolaris">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlsolaris">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlsolaris">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlsolaris">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlsolaris">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlsolaris">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlsolaris">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlsolaris">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlsolaris">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlsolaris">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlsolaris">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlsolaris">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlsolaris">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlsolaris">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlsolaris">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlsolaris">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlsolaris">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlsolaris">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlsolaris">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlsolaris">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlsolaris">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlsolaris">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlsolaris">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlsolaris">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlsolaris">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlsolaris">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlsolaris">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlsolaris">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlsolaris">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlsolaris">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlsolaris">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlsolaris">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlsolaris">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlsolaris">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlsolaris">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlsolaris">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlsolaris">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlsolaris">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlsolaris">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlsolaris">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlsolaris.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlsolaris">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlsolaris">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlsolaris">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlsolaris">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlsolaris">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlsolaris">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlsolaris">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlsolaris">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlsolaris">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlsolaris">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlsolaris">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlsolaris">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlsolaris">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlsolaris">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlsolaris">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlsolaris">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlsolaris">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlsolaris">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlsolaris">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlsolaris">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlsolaris">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlsolaris">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlsolaris">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlsolaris">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlsolaris">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlsolaris">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlsolaris">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlsolaris">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlsolaris">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlsolaris">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlsolaris">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlsolaris">5.35.1</a>
          <a class="dropdown-item active" href="perlsolaris.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlsolaris.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlsolaris.html">perlsolaris</a>
          <div id="more">
            (<a href="perlsolaris.txt">source</a>,
            <a href="https://metacpan.org/pod/perlsolaris">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Solaris-Version-Numbers.">Solaris Version Numbers.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#RESOURCES">RESOURCES</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#SETTING-UP">SETTING UP</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#File-Extraction-Problems-on-Solaris.">File Extraction Problems on Solaris.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Compiler-and-Related-Tools-on-Solaris.">Compiler and Related Tools on Solaris.</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Include-/usr/ccs/bin/-in-your-PATH.">Include /usr/ccs/bin/ in your PATH.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Avoid-/usr/ucb/cc.">Avoid /usr/ucb/cc.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Sun&#39;s-C-Compiler">Sun&#39;s C Compiler</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#GCC">GCC</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#GNU-as-and-GNU-ld">GNU as and GNU ld</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Sun-and-GNU-make">Sun and GNU make</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Avoid-libucb.">Avoid libucb.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Environment-for-Compiling-perl-on-Solaris">Environment for Compiling perl on Solaris</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#PATH">PATH</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#LD_LIBRARY_PATH">LD_LIBRARY_PATH</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#RUN-CONFIGURE.">RUN CONFIGURE.</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#64-bit-perl-on-Solaris.">64-bit perl on Solaris.</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#General-32-bit-vs.-64-bit-issues.">General 32-bit vs. 64-bit issues.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Large-File-Support">Large File Support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Building-an-LP64-perl">Building an LP64 perl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Long-Doubles.">Long Doubles.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Threads-in-perl-on-Solaris.">Threads in perl on Solaris.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Malloc-Issues-with-perl-on-Solaris.">Malloc Issues with perl on Solaris.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#MAKE-PROBLEMS.">MAKE PROBLEMS.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#MAKE-TEST">MAKE TEST</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#op/stat.t-test-4-in-Solaris">op/stat.t test 4 in Solaris</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#nss_delete-core-dump-from-op/pwent-or-op/grent">nss_delete core dump from op/pwent or op/grent</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#CROSS-COMPILATION">CROSS-COMPILATION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#PREBUILT-BINARIES-OF-PERL-FOR-SOLARIS.">PREBUILT BINARIES OF PERL FOR SOLARIS.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#RUNTIME-ISSUES-FOR-PERL-ON-SOLARIS.">RUNTIME ISSUES FOR PERL ON SOLARIS.</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Limits-on-Numbers-of-Open-Files-on-Solaris.">Limits on Numbers of Open Files on Solaris.</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#SOLARIS-SPECIFIC-MODULES.">SOLARIS-SPECIFIC MODULES.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#SOLARIS-SPECIFIC-PROBLEMS-WITH-MODULES.">SOLARIS-SPECIFIC PROBLEMS WITH MODULES.</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Proc::ProcessTable-on-Solaris">Proc::ProcessTable on Solaris</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#BSD::Resource-on-Solaris">BSD::Resource on Solaris</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#Net::SSLeay-on-Solaris">Net::SSLeay on Solaris</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#SunOS-4.x">SunOS 4.x</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlsolaris.html#AUTHOR">AUTHOR</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlsolaris.html#NAME">#</a>NAME</h1>

<p>perlsolaris - Perl version 5 on Solaris systems</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlsolaris.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes various features of Sun&#39;s Solaris operating system that will affect how Perl version 5 (hereafter just perl) is compiled and/or runs. Some issues relating to the older SunOS 4.x are also discussed, though they may be out of date.</p>

<p>For the most part, everything should just work.</p>

<p>Starting with Solaris 8, perl5.00503 (or higher) is supplied with the operating system, so you might not even need to build a newer version of perl at all. The Sun-supplied version is installed in /usr/perl5 with <i>/usr/bin/perl</i> pointing to <i>/usr/perl5/bin/perl</i>. Do not disturb that installation unless you really know what you are doing. If you remove the perl supplied with the OS, you will render some bits of your system inoperable. If you wish to install a newer version of perl, install it under a different prefix from /usr/perl5. Common prefixes to use are /usr/local and /opt/perl.</p>

<p>You may wish to put your version of perl in the PATH of all users by changing the link <i>/usr/bin/perl</i>. This is probably OK, as most perl scripts shipped with Solaris use an explicit path. (There are a few exceptions, such as <i>/usr/bin/rpm2cpio</i> and <i>/etc/rcm/scripts/README</i>, but these are also sufficiently generic that the actual version of perl probably doesn&#39;t matter too much.)</p>

<p>Solaris ships with a range of Solaris-specific modules. If you choose to install your own version of perl you will find the source of many of these modules is available on CPAN under the Sun::Solaris:: namespace.</p>

<p>Solaris may include two versions of perl, e.g. Solaris 9 includes both 5.005_03 and 5.6.1. This is to provide stability across Solaris releases, in cases where a later perl version has incompatibilities with the version included in the preceding Solaris release. The default perl version will always be the most recent, and in general the old version will only be retained for one Solaris release. Note also that the default perl will NOT be configured to search for modules in the older version, again due to compatibility/stability concerns. As a consequence if you upgrade Solaris, you will have to rebuild/reinstall any additional CPAN modules that you installed for the previous Solaris version. See the CPAN manpage under &#39;autobundle&#39; for a quick way of doing this.</p>

<p>As an interim measure, you may either change the #! line of your scripts to specifically refer to the old perl version, e.g. on Solaris 9 use #!/usr/perl5/5.00503/bin/perl to use the perl version that was the default for Solaris 8, or if you have a large number of scripts it may be more convenient to make the old version of perl the default on your system. You can do this by changing the appropriate symlinks under /usr/perl5 as follows (example for Solaris 9):</p>

<pre><code class="plaintext"># cd /usr/perl5
# rm bin man pod
# ln -s ./5.00503/bin
# ln -s ./5.00503/man
# ln -s ./5.00503/lib/pod
# rm /usr/bin/perl
# ln -s ../perl5/5.00503/bin/perl /usr/bin/perl</code></pre>

<p>In both cases this should only be considered to be a temporary measure - you should upgrade to the later version of perl as soon as is practicable.</p>

<p>Note also that the perl command-line utilities (e.g. perldoc) and any that are added by modules that you install will be under /usr/perl5/bin, so that directory should be added to your PATH.</p>

<h2 id="Solaris-Version-Numbers."><a class="permalink" href="perlsolaris.html#Solaris-Version-Numbers.">#</a><a id="Solaris"></a><a id="Solaris-Version-Numbers"></a>Solaris Version Numbers.</h2>

<p>For consistency with common usage, perl&#39;s Configure script performs some minor manipulations on the operating system name and version number as reported by uname. Here&#39;s a partial translation table:</p>

<pre><code class="plaintext">         Sun:                      perl&#39;s Configure:
uname    uname -r   Name           osname     osvers
SunOS    4.1.3     Solaris 1.1     sunos      4.1.3
SunOS    5.6       Solaris 2.6     solaris    2.6
SunOS    5.8       Solaris 8       solaris    2.8
SunOS    5.9       Solaris 9       solaris    2.9
SunOS    5.10      Solaris 10      solaris    2.10</code></pre>

<p>The complete table can be found in the Sun Managers&#39; FAQ <a href="ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq">ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq</a> under &quot;9.1) Which Sun models run which versions of SunOS?&quot;.</p>

<h1 id="RESOURCES"><a class="permalink" href="perlsolaris.html#RESOURCES">#</a>RESOURCES</h1>

<p>There are many, many sources for Solaris information. A few of the important ones for perl:</p>

<dl>

<dt id="Solaris-FAQ"><a class="permalink" href="perlsolaris.html#Solaris-FAQ">#</a><a id="Solaris1"></a>Solaris FAQ</dt>
<dd>

<p>The Solaris FAQ is available at <a href="http://www.science.uva.nl/pub/solaris/solaris2.html">http://www.science.uva.nl/pub/solaris/solaris2.html</a>.</p>

<p>The Sun Managers&#39; FAQ is available at <a href="ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq">ftp://ftp.cs.toronto.edu/pub/jdd/sunmanagers/faq</a></p>

</dd>
<dt id="Precompiled-Binaries"><a class="permalink" href="perlsolaris.html#Precompiled-Binaries">#</a><a id="Precompiled"></a>Precompiled Binaries</dt>
<dd>

<p>Precompiled binaries, links to many sites, and much, much more are available at <a href="http://www.sunfreeware.com/">http://www.sunfreeware.com/</a> and <a href="http://www.blastwave.org/">http://www.blastwave.org/</a>.</p>

</dd>
<dt id="Solaris-Documentation"><a class="permalink" href="perlsolaris.html#Solaris-Documentation">#</a><a id="Solaris2"></a>Solaris Documentation</dt>
<dd>

<p>All Solaris documentation is available on-line at <a href="http://docs.sun.com/">http://docs.sun.com/</a>.</p>

</dd>
</dl>

<h1 id="SETTING-UP"><a class="permalink" href="perlsolaris.html#SETTING-UP">#</a><a id="SETTING"></a>SETTING UP</h1>

<h2 id="File-Extraction-Problems-on-Solaris."><a class="permalink" href="perlsolaris.html#File-Extraction-Problems-on-Solaris.">#</a><a id="File"></a><a id="File-Extraction-Problems-on-Solaris"></a>File Extraction Problems on Solaris.</h2>

<p>Be sure to use a tar program compiled under Solaris (not SunOS 4.x) to extract the perl-5.x.x.tar.gz file. Do not use GNU tar compiled for SunOS4 on Solaris. (GNU tar compiled for Solaris should be fine.) When you run SunOS4 binaries on Solaris, the run-time system magically alters pathnames matching m#lib/locale# so that when tar tries to create lib/locale.pm, a file named lib/oldlocale.pm gets created instead. If you found this advice too late and used a SunOS4-compiled tar anyway, you must find the incorrectly renamed file and move it back to lib/locale.pm.</p>

<h2 id="Compiler-and-Related-Tools-on-Solaris."><a class="permalink" href="perlsolaris.html#Compiler-and-Related-Tools-on-Solaris.">#</a><a id="Compiler"></a><a id="Compiler-and-Related-Tools-on-Solaris"></a>Compiler and Related Tools on Solaris.</h2>

<p>You must use an ANSI C compiler to build perl. Perl can be compiled with either Sun&#39;s add-on C compiler or with gcc. The C compiler that shipped with SunOS4 will not do.</p>

<h3 id="Include-/usr/ccs/bin/-in-your-PATH."><a class="permalink" href="perlsolaris.html#Include-/usr/ccs/bin/-in-your-PATH.">#</a><a id="Include"></a><a id="Include-usr-ccs-bin-in-your-PATH"></a>Include /usr/ccs/bin/ in your PATH.</h3>

<p>Several tools needed to build perl are located in /usr/ccs/bin/: ar, as, ld, and make. Make sure that /usr/ccs/bin/ is in your PATH.</p>

<p>On all the released versions of Solaris (8, 9 and 10) you need to make sure the following packages are installed (this info is extracted from the Solaris FAQ):</p>

<p>for tools (sccs, lex, yacc, make, nm, truss, ld, as): SUNWbtool, SUNWsprot, SUNWtoo</p>

<p>for libraries &amp; headers: SUNWhea, SUNWarc, SUNWlibm, SUNWlibms, SUNWdfbh, SUNWcg6h, SUNWxwinc</p>

<p>Additionally, on Solaris 8 and 9 you also need:</p>

<p>for 64 bit development: SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox, SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx</p>

<p>And only on Solaris 8 you also need:</p>

<p>for libraries &amp; headers: SUNWolinc</p>

<p>If you are in doubt which package contains a file you are missing, try to find an installation that has that file. Then do a</p>

<pre><code class="plaintext">$ grep /my/missing/file /var/sadm/install/contents</code></pre>

<p>This will display a line like this:</p>

<p>/usr/include/sys/errno.h f none 0644 root bin 7471 37605 956241356 SUNWhea</p>

<p>The last item listed (SUNWhea in this example) is the package you need.</p>

<h3 id="Avoid-/usr/ucb/cc."><a class="permalink" href="perlsolaris.html#Avoid-/usr/ucb/cc.">#</a><a id="Avoid"></a><a id="Avoid-usr-ucb-cc"></a>Avoid /usr/ucb/cc.</h3>

<p>You don&#39;t need to have /usr/ucb/ in your PATH to build perl. If you want /usr/ucb/ in your PATH anyway, make sure that /usr/ucb/ is NOT in your PATH before the directory containing the right C compiler.</p>

<h3 id="Sun&#39;s-C-Compiler"><a class="permalink" href="perlsolaris.html#Sun&#39;s-C-Compiler">#</a><a id="Sun"></a><a id="Suns-C-Compiler"></a>Sun&#39;s C Compiler</h3>

<p>If you use Sun&#39;s C compiler, make sure the correct directory (usually /opt/SUNWspro/bin/) is in your PATH (before /usr/ucb/).</p>

<h3 id="GCC"><a class="permalink" href="perlsolaris.html#GCC">#</a>GCC</h3>

<p>If you use gcc, make sure your installation is recent and complete. perl versions since 5.6.0 build fine with gcc &gt; 2.8.1 on Solaris &gt;= 2.6.</p>

<p>You must Configure perl with</p>

<pre><code class="plaintext">$ sh Configure -Dcc=gcc</code></pre>

<p>If you don&#39;t, you may experience strange build errors.</p>

<p>If you have updated your Solaris version, you may also have to update your gcc. For example, if you are running Solaris 2.6 and your gcc is installed under /usr/local, check in /usr/local/lib/gcc-lib and make sure you have the appropriate directory, sparc-sun-solaris2.6/ or i386-pc-solaris2.6/. If gcc&#39;s directory is for a different version of Solaris than you are running, then you will need to rebuild gcc for your new version of Solaris.</p>

<p>You can get a precompiled version of gcc from <a href="http://www.sunfreeware.com/">http://www.sunfreeware.com/</a> or <a href="http://www.blastwave.org/">http://www.blastwave.org/</a>. Make sure you pick up the package for your Solaris release.</p>

<p>If you wish to use gcc to build add-on modules for use with the perl shipped with Solaris, you should use the Solaris::PerlGcc module which is available from CPAN. The perl shipped with Solaris is configured and built with the Sun compilers, and the compiler configuration information stored in Config.pm is therefore only relevant to the Sun compilers. The Solaris:PerlGcc module contains a replacement Config.pm that is correct for gcc - see the module for details.</p>

<h3 id="GNU-as-and-GNU-ld"><a class="permalink" href="perlsolaris.html#GNU-as-and-GNU-ld">#</a><a id="GNU"></a>GNU as and GNU ld</h3>

<p>The following information applies to gcc version 2. Volunteers to update it as appropriately for gcc version 3 would be appreciated.</p>

<p>The versions of as and ld supplied with Solaris work fine for building perl. There is normally no need to install the GNU versions to compile perl.</p>

<p>If you decide to ignore this advice and use the GNU versions anyway, then be sure that they are relatively recent. Versions newer than 2.7 are apparently new enough. Older versions may have trouble with dynamic loading.</p>

<p>If you wish to use GNU ld, then you need to pass it the -Wl,-E flag. The hints/solaris_2.sh file tries to do this automatically by setting the following Configure variables:</p>

<pre><code>ccdlflags=&quot;$ccdlflags -Wl,-E&quot;
lddlflags=&quot;$lddlflags -Wl,-E -G&quot;</code></pre>

<p>However, over the years, changes in gcc, GNU ld, and Solaris ld have made it difficult to automatically detect which ld ultimately gets called. You may have to manually edit config.sh and add the -Wl,-E flags yourself, or else run Configure interactively and add the flags at the appropriate prompts.</p>

<p>If your gcc is configured to use GNU as and ld but you want to use the Solaris ones instead to build perl, then you&#39;ll need to add -B/usr/ccs/bin/ to the gcc command line. One convenient way to do that is with</p>

<pre><code class="plaintext">$ sh Configure -Dcc=&#39;gcc -B/usr/ccs/bin/&#39;</code></pre>

<p>Note that the trailing slash is required. This will result in some harmless warnings as Configure is run:</p>

<pre><code class="plaintext">gcc: file path prefix `/usr/ccs/bin/&#39; never used</code></pre>

<p>These messages may safely be ignored. (Note that for a SunOS4 system, you must use -B/bin/ instead.)</p>

<p>Alternatively, you can use the GCC_EXEC_PREFIX environment variable to ensure that Sun&#39;s as and ld are used. Consult your gcc documentation for further information on the -B option and the GCC_EXEC_PREFIX variable.</p>

<h3 id="Sun-and-GNU-make"><a class="permalink" href="perlsolaris.html#Sun-and-GNU-make">#</a><a id="Sun1"></a>Sun and GNU make</h3>

<p>The make under /usr/ccs/bin works fine for building perl. If you have the Sun C compilers, you will also have a parallel version of make (dmake). This works fine to build perl, but can sometimes cause problems when running &#39;make test&#39; due to underspecified dependencies between the different test harness files. The same problem can also affect the building of some add-on modules, so in those cases either specify &#39;-m serial&#39; on the dmake command line, or use /usr/ccs/bin/make instead. If you wish to use GNU make, be sure that the set-group-id bit is not set. If it is, then arrange your PATH so that /usr/ccs/bin/make is before GNU make or else have the system administrator disable the set-group-id bit on GNU make.</p>

<h3 id="Avoid-libucb."><a class="permalink" href="perlsolaris.html#Avoid-libucb.">#</a><a id="Avoid1"></a><a id="Avoid-libucb"></a>Avoid libucb.</h3>

<p>Solaris provides some BSD-compatibility functions in /usr/ucblib/libucb.a. Perl will not build and run correctly if linked against -lucb since it contains routines that are incompatible with the standard Solaris libc. Normally this is not a problem since the solaris hints file prevents Configure from even looking in /usr/ucblib for libraries, and also explicitly omits -lucb.</p>

<h2 id="Environment-for-Compiling-perl-on-Solaris"><a class="permalink" href="perlsolaris.html#Environment-for-Compiling-perl-on-Solaris">#</a><a id="Environment"></a>Environment for Compiling perl on Solaris</h2>

<h3 id="PATH"><a class="permalink" href="perlsolaris.html#PATH">#</a>PATH</h3>

<p>Make sure your PATH includes the compiler (/opt/SUNWspro/bin/ if you&#39;re using Sun&#39;s compiler) as well as /usr/ccs/bin/ to pick up the other development tools (such as make, ar, as, and ld). Make sure your path either doesn&#39;t include /usr/ucb or that it includes it after the compiler and compiler tools and other standard Solaris directories. You definitely don&#39;t want /usr/ucb/cc.</p>

<h3 id="LD_LIBRARY_PATH"><a class="permalink" href="perlsolaris.html#LD_LIBRARY_PATH">#</a>LD_LIBRARY_PATH</h3>

<p>If you have the LD_LIBRARY_PATH environment variable set, be sure that it does NOT include /lib or /usr/lib. If you will be building extensions that call third-party shared libraries (e.g. Berkeley DB) then make sure that your LD_LIBRARY_PATH environment variable includes the directory with that library (e.g. /usr/local/lib).</p>

<p>If you get an error message</p>

<pre><code class="plaintext">dlopen: stub interception failed</code></pre>

<p>it is probably because your LD_LIBRARY_PATH environment variable includes a directory which is a symlink to /usr/lib (such as /lib). The reason this causes a problem is quite subtle. The file libdl.so.1.0 actually *only* contains functions which generate &#39;stub interception failed&#39; errors! The runtime linker intercepts links to &quot;/usr/lib/libdl.so.1.0&quot; and links in internal implementations of those functions instead. [Thanks to Tim Bunce for this explanation.]</p>

<h1 id="RUN-CONFIGURE."><a class="permalink" href="perlsolaris.html#RUN-CONFIGURE.">#</a><a id="RUN"></a><a id="RUN-CONFIGURE"></a>RUN CONFIGURE.</h1>

<p>See the INSTALL file for general information regarding Configure. Only Solaris-specific issues are discussed here. Usually, the defaults should be fine.</p>

<h2 id="64-bit-perl-on-Solaris."><a class="permalink" href="perlsolaris.html#64-bit-perl-on-Solaris.">#</a><a id="64"></a><a id="bit-perl-on-Solaris"></a>64-bit perl on Solaris.</h2>

<p>See the INSTALL file for general information regarding 64-bit compiles. In general, the defaults should be fine for most people.</p>

<p>By default, perl-5.6.0 (or later) is compiled as a 32-bit application with largefile and long-long support.</p>

<h3 id="General-32-bit-vs.-64-bit-issues."><a class="permalink" href="perlsolaris.html#General-32-bit-vs.-64-bit-issues.">#</a><a id="General"></a><a id="General-32-bit-vs.-64-bit-issues"></a>General 32-bit vs. 64-bit issues.</h3>

<p>Solaris 7 and above will run in either 32 bit or 64 bit mode on SPARC CPUs, via a reboot. You can build 64 bit apps whilst running 32 bit mode and vice-versa. 32 bit apps will run under Solaris running in either 32 or 64 bit mode. 64 bit apps require Solaris to be running 64 bit mode.</p>

<p>Existing 32 bit apps are properly known as LP32, i.e. Longs and Pointers are 32 bit. 64-bit apps are more properly known as LP64. The discriminating feature of a LP64 bit app is its ability to utilise a 64-bit address space. It is perfectly possible to have a LP32 bit app that supports both 64-bit integers (long long) and largefiles (&gt; 2GB), and this is the default for perl-5.6.0.</p>

<p>For a more complete explanation of 64-bit issues, see the &quot;Solaris 64-bit Developer&#39;s Guide&quot; at <a href="http://docs.sun.com/">http://docs.sun.com/</a></p>

<p>You can detect the OS mode using &quot;isainfo -v&quot;, e.g.</p>

<pre><code class="plaintext">$ isainfo -v   # Ultra 30 in 64 bit mode
64-bit sparcv9 applications
32-bit sparc applications</code></pre>

<p>By default, perl will be compiled as a 32-bit application. Unless you want to allocate more than ~ 4GB of memory inside perl, or unless you need more than 255 open file descriptors, you probably don&#39;t need perl to be a 64-bit app.</p>

<h3 id="Large-File-Support"><a class="permalink" href="perlsolaris.html#Large-File-Support">#</a><a id="Large"></a>Large File Support</h3>

<p>For Solaris 2.6 and onwards, there are two different ways for 32-bit applications to manipulate large files (files whose size is &gt; 2GByte). (A 64-bit application automatically has largefile support built in by default.)</p>

<p>First is the &quot;transitional compilation environment&quot;, described in lfcompile64(5). According to the man page,</p>

<pre><code class="plaintext">The transitional compilation  environment  exports  all  the
explicit 64-bit functions (xxx64()) and types in addition to
all the regular functions (xxx()) and types. Both xxx()  and
xxx64()  functions  are  available to the program source.  A
32-bit application must use the xxx64() functions in  order
to  access  large  files.  See the lf64(5) manual page for a
complete listing of the 64-bit transitional interfaces.</code></pre>

<p>The transitional compilation environment is obtained with the following compiler and linker flags:</p>

<pre><code class="plaintext">getconf LFS64_CFLAGS        -D_LARGEFILE64_SOURCE
getconf LFS64_LDFLAG        # nothing special needed
getconf LFS64_LIBS          # nothing special needed</code></pre>

<p>Second is the &quot;large file compilation environment&quot;, described in lfcompile(5). According to the man page,</p>

<pre><code class="plaintext">Each interface named xxx() that needs to access 64-bit entities
to  access  large  files maps to a xxx64() call in the
resulting binary. All relevant data types are defined to  be
of correct size (for example, off_t has a typedef definition
for a 64-bit entity).

An application compiled in this environment is able  to  use
the  xxx()  source interfaces to access both large and small
files, rather than having to explicitly utilize the  transitional
xxx64()  interface  calls to access large files.</code></pre>

<p>Two exceptions are fseek() and ftell(). 32-bit applications should use fseeko(3C) and ftello(3C). These will get automatically mapped to fseeko64() and ftello64().</p>

<p>The large file compilation environment is obtained with</p>

<pre><code class="plaintext">getconf LFS_CFLAGS      -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
getconf LFS_LDFLAGS     # nothing special needed
getconf LFS_LIBS        # nothing special needed</code></pre>

<p>By default, perl uses the large file compilation environment and relies on Solaris to do the underlying mapping of interfaces.</p>

<h3 id="Building-an-LP64-perl"><a class="permalink" href="perlsolaris.html#Building-an-LP64-perl">#</a><a id="Building"></a>Building an LP64 perl</h3>

<p>To compile a 64-bit application on an UltraSparc with a recent Sun Compiler, you need to use the flag &quot;-xarch=v9&quot;. getconf(1) will tell you this, e.g.</p>

<pre><code class="plaintext">$ getconf -a | grep v9
XBS5_LP64_OFF64_CFLAGS:         -xarch=v9
XBS5_LP64_OFF64_LDFLAGS:        -xarch=v9
XBS5_LP64_OFF64_LINTFLAGS:      -xarch=v9
XBS5_LPBIG_OFFBIG_CFLAGS:       -xarch=v9
XBS5_LPBIG_OFFBIG_LDFLAGS:      -xarch=v9
XBS5_LPBIG_OFFBIG_LINTFLAGS:    -xarch=v9
_XBS5_LP64_OFF64_CFLAGS:        -xarch=v9
_XBS5_LP64_OFF64_LDFLAGS:       -xarch=v9
_XBS5_LP64_OFF64_LINTFLAGS:     -xarch=v9
_XBS5_LPBIG_OFFBIG_CFLAGS:      -xarch=v9
_XBS5_LPBIG_OFFBIG_LDFLAGS:     -xarch=v9
_XBS5_LPBIG_OFFBIG_LINTFLAGS:   -xarch=v9</code></pre>

<p>This flag is supported in Sun WorkShop Compilers 5.0 and onwards (now marketed under the name Forte) when used on Solaris 7 or later on UltraSparc systems.</p>

<p>If you are using gcc, you would need to use -mcpu=v9 -m64 instead. This option is not yet supported as of gcc 2.95.2; from install/SPECIFIC in that release:</p>

<pre><code class="plaintext">GCC version 2.95 is not able to compile code correctly for sparc64
targets. Users of the Linux kernel, at least, can use the sparc32
program to start up a new shell invocation with an environment that
causes configure to recognize (via uname -a) the system as sparc-*-*
instead.</code></pre>

<p>All this should be handled automatically by the hints file, if requested.</p>

<h3 id="Long-Doubles."><a class="permalink" href="perlsolaris.html#Long-Doubles.">#</a><a id="Long"></a><a id="Long-Doubles"></a>Long Doubles.</h3>

<p>As of 5.8.1, long doubles are working if you use the Sun compilers (needed for additional math routines not included in libm).</p>

<h2 id="Threads-in-perl-on-Solaris."><a class="permalink" href="perlsolaris.html#Threads-in-perl-on-Solaris.">#</a><a id="Threads"></a><a id="Threads-in-perl-on-Solaris"></a>Threads in perl on Solaris.</h2>

<p>It is possible to build a threaded version of perl on Solaris. The entire perl thread implementation is still experimental, however, so beware.</p>

<h2 id="Malloc-Issues-with-perl-on-Solaris."><a class="permalink" href="perlsolaris.html#Malloc-Issues-with-perl-on-Solaris.">#</a><a id="Malloc"></a><a id="Malloc-Issues-with-perl-on-Solaris"></a>Malloc Issues with perl on Solaris.</h2>

<p>Starting from perl 5.7.1 perl uses the Solaris malloc, since the perl malloc breaks when dealing with more than 2GB of memory, and the Solaris malloc also seems to be faster.</p>

<p>If you for some reason (such as binary backward compatibility) really need to use perl&#39;s malloc, you can rebuild perl from the sources and Configure the build with</p>

<pre><code class="plaintext">$ sh Configure -Dusemymalloc</code></pre>

<p>You should not use perl&#39;s malloc if you are building with gcc. There are reports of core dumps, especially in the PDL module. The problem appears to go away under -DDEBUGGING, so it has been difficult to track down. Sun&#39;s compiler appears to be okay with or without perl&#39;s malloc. [XXX further investigation is needed here.]</p>

<h1 id="MAKE-PROBLEMS."><a class="permalink" href="perlsolaris.html#MAKE-PROBLEMS.">#</a><a id="MAKE"></a><a id="MAKE-PROBLEMS"></a>MAKE PROBLEMS.</h1>

<dl>

<dt id="Dynamic-Loading-Problems-With-GNU-as-and-GNU-ld"><a class="permalink" href="perlsolaris.html#Dynamic-Loading-Problems-With-GNU-as-and-GNU-ld">#</a><a id="Dynamic"></a>Dynamic Loading Problems With GNU as and GNU ld</dt>
<dd>

<p>If you have problems with dynamic loading using gcc on SunOS or Solaris, and you are using GNU as and GNU ld, see the section <a href="perlsolaris.html#GNU-as-and-GNU-ld">&quot;GNU as and GNU ld&quot;</a> above.</p>

</dd>
<dt id="ld.so.1:-./perl:-fatal:-relocation-error:"><a class="permalink" href="perlsolaris.html#ld.so.1:-./perl:-fatal:-relocation-error:">#</a><a id="ld"></a><a id="ld.so.1:-.-perl:-fatal:-relocation-error"></a>ld.so.1: ./perl: fatal: relocation error:</dt>
<dd>

<p>If you get this message on SunOS or Solaris, and you&#39;re using gcc, it&#39;s probably the GNU as or GNU ld problem in the previous item <a href="perlsolaris.html#GNU-as-and-GNU-ld">&quot;GNU as and GNU ld&quot;</a>.</p>

</dd>
<dt id="dlopen:-stub-interception-failed"><a class="permalink" href="perlsolaris.html#dlopen:-stub-interception-failed">#</a><a id="dlopen"></a>dlopen: stub interception failed</dt>
<dd>

<p>The primary cause of the &#39;dlopen: stub interception failed&#39; message is that the LD_LIBRARY_PATH environment variable includes a directory which is a symlink to /usr/lib (such as /lib). See <a href="perlsolaris.html#LD_LIBRARY_PATH">&quot;LD_LIBRARY_PATH&quot;</a> above.</p>

</dd>
<dt id="#error-&quot;No-DATAMODEL_NATIVE-specified&quot;"><a class="permalink" href="perlsolaris.html#%23error-%22No-DATAMODEL_NATIVE-specified%22">#</a><a id="error-No-DATAMODEL_NATIVE-specified"></a>#error &quot;No DATAMODEL_NATIVE specified&quot;</dt>
<dd>

<p>This is a common error when trying to build perl on Solaris 2.6 with a gcc installation from Solaris 2.5 or 2.5.1. The Solaris header files changed, so you need to update your gcc installation. You can either rerun the fixincludes script from gcc or take the opportunity to update your gcc installation.</p>

</dd>
<dt id="sh:-ar:-not-found"><a class="permalink" href="perlsolaris.html#sh:-ar:-not-found">#</a><a id="sh"></a>sh: ar: not found</dt>
<dd>

<p>This is a message from your shell telling you that the command &#39;ar&#39; was not found. You need to check your PATH environment variable to make sure that it includes the directory with the &#39;ar&#39; command. This is a common problem on Solaris, where &#39;ar&#39; is in the /usr/ccs/bin/ directory.</p>

</dd>
</dl>

<h1 id="MAKE-TEST"><a class="permalink" href="perlsolaris.html#MAKE-TEST">#</a><a id="MAKE1"></a>MAKE TEST</h1>

<h2 id="op/stat.t-test-4-in-Solaris"><a class="permalink" href="perlsolaris.html#op/stat.t-test-4-in-Solaris">#</a><a id="op"></a><a id="op-stat.t-test-4-in-Solaris"></a>op/stat.t test 4 in Solaris</h2>

<p><i>op/stat.t</i> test 4 may fail if you are on a tmpfs of some sort. Building in /tmp sometimes shows this behavior. The test suite detects if you are building in /tmp, but it may not be able to catch all tmpfs situations.</p>

<h2 id="nss_delete-core-dump-from-op/pwent-or-op/grent"><a class="permalink" href="perlsolaris.html#nss_delete-core-dump-from-op/pwent-or-op/grent">#</a><a id="nss_delete"></a><a id="nss_delete-core-dump-from-op-pwent-or-op-grent"></a>nss_delete core dump from op/pwent or op/grent</h2>

<p>See <a href="perlhpux.html#nss_delete-core-dump-from-op%2Fpwent-or-op%2Fgrent">&quot;nss_delete core dump from op/pwent or op/grent&quot; in perlhpux</a>.</p>

<h1 id="CROSS-COMPILATION"><a class="permalink" href="perlsolaris.html#CROSS-COMPILATION">#</a><a id="CROSS"></a>CROSS-COMPILATION</h1>

<p>Nothing too unusual here. You can easily do this if you have a cross-compiler available; A usual Configure invocation when targetting a Solaris x86 looks something like this:</p>

<pre><code>sh ./Configure -des -Dusecrosscompile \
    -Dcc=i386-pc-solaris2.11-gcc      \
    -Dsysroot=$SYSROOT                \
    -Alddlflags=&quot; -Wl,-z,notext&quot;      \
    -Dtargethost=... # The usual cross-compilation options</code></pre>

<p>The lddlflags addition is the only abnormal bit.</p>

<h1 id="PREBUILT-BINARIES-OF-PERL-FOR-SOLARIS."><a class="permalink" href="perlsolaris.html#PREBUILT-BINARIES-OF-PERL-FOR-SOLARIS.">#</a><a id="PREBUILT"></a><a id="PREBUILT-BINARIES-OF-PERL-FOR-SOLARIS"></a>PREBUILT BINARIES OF PERL FOR SOLARIS.</h1>

<p>You can pick up prebuilt binaries for Solaris from <a href="http://www.sunfreeware.com/">http://www.sunfreeware.com/</a>, <a href="http://www.blastwave.org">http://www.blastwave.org</a>, ActiveState <a href="http://www.activestate.com/">http://www.activestate.com/</a>, and <a href="http://www.perl.com/">http://www.perl.com/</a> under the Binaries list at the top of the page. There are probably other sources as well. Please note that these sites are under the control of their respective owners, not the perl developers.</p>

<h1 id="RUNTIME-ISSUES-FOR-PERL-ON-SOLARIS."><a class="permalink" href="perlsolaris.html#RUNTIME-ISSUES-FOR-PERL-ON-SOLARIS.">#</a><a id="RUNTIME"></a><a id="RUNTIME-ISSUES-FOR-PERL-ON-SOLARIS"></a>RUNTIME ISSUES FOR PERL ON SOLARIS.</h1>

<h2 id="Limits-on-Numbers-of-Open-Files-on-Solaris."><a class="permalink" href="perlsolaris.html#Limits-on-Numbers-of-Open-Files-on-Solaris.">#</a><a id="Limits"></a><a id="Limits-on-Numbers-of-Open-Files-on-Solaris"></a>Limits on Numbers of Open Files on Solaris.</h2>

<p>The stdio(3C) manpage notes that for LP32 applications, only 255 files may be opened using fopen(), and only file descriptors 0 through 255 can be used in a stream. Since perl calls open() and then fdopen(3C) with the resulting file descriptor, perl is limited to 255 simultaneous open files, even if sysopen() is used. If this proves to be an insurmountable problem, you can compile perl as a LP64 application, see <a href="perlsolaris.html#Building-an-LP64-perl">&quot;Building an LP64 perl&quot;</a> for details. Note also that the default resource limit for open file descriptors on Solaris is 255, so you will have to modify your ulimit or rctl (Solaris 9 onwards) appropriately.</p>

<h1 id="SOLARIS-SPECIFIC-MODULES."><a class="permalink" href="perlsolaris.html#SOLARIS-SPECIFIC-MODULES.">#</a><a id="SOLARIS"></a><a id="SOLARIS-SPECIFIC-MODULES"></a>SOLARIS-SPECIFIC MODULES.</h1>

<p>See the modules under the Solaris:: and Sun::Solaris namespaces on CPAN, see <a href="http://www.cpan.org/modules/by-module/Solaris/">http://www.cpan.org/modules/by-module/Solaris/</a> and <a href="http://www.cpan.org/modules/by-module/Sun/">http://www.cpan.org/modules/by-module/Sun/</a>.</p>

<h1 id="SOLARIS-SPECIFIC-PROBLEMS-WITH-MODULES."><a class="permalink" href="perlsolaris.html#SOLARIS-SPECIFIC-PROBLEMS-WITH-MODULES.">#</a><a id="SOLARIS1"></a><a id="SOLARIS-SPECIFIC-PROBLEMS-WITH-MODULES"></a>SOLARIS-SPECIFIC PROBLEMS WITH MODULES.</h1>

<h2 id="Proc::ProcessTable-on-Solaris"><a class="permalink" href="perlsolaris.html#Proc::ProcessTable-on-Solaris">#</a><a id="Proc"></a>Proc::ProcessTable on Solaris</h2>

<p>Proc::ProcessTable does not compile on Solaris with perl5.6.0 and higher if you have LARGEFILES defined. Since largefile support is the default in 5.6.0 and later, you have to take special steps to use this module.</p>

<p>The problem is that various structures visible via procfs use off_t, and if you compile with largefile support these change from 32 bits to 64 bits. Thus what you get back from procfs doesn&#39;t match up with the structures in perl, resulting in garbage. See proc(4) for further discussion.</p>

<p>A fix for Proc::ProcessTable is to edit Makefile to explicitly remove the largefile flags from the ones MakeMaker picks up from Config.pm. This will result in Proc::ProcessTable being built under the correct environment. Everything should then be OK as long as Proc::ProcessTable doesn&#39;t try to share off_t&#39;s with the rest of perl, or if it does they should be explicitly specified as off64_t.</p>

<h2 id="BSD::Resource-on-Solaris"><a class="permalink" href="perlsolaris.html#BSD::Resource-on-Solaris">#</a><a id="BSD"></a>BSD::Resource on Solaris</h2>

<p>BSD::Resource versions earlier than 1.09 do not compile on Solaris with perl 5.6.0 and higher, for the same reasons as Proc::ProcessTable. BSD::Resource versions starting from 1.09 have a workaround for the problem.</p>

<h2 id="Net::SSLeay-on-Solaris"><a class="permalink" href="perlsolaris.html#Net::SSLeay-on-Solaris">#</a><a id="Net"></a>Net::SSLeay on Solaris</h2>

<p>Net::SSLeay requires a /dev/urandom to be present. This device is available from Solaris 9 onwards. For earlier Solaris versions you can either get the package SUNWski (packaged with several Sun software products, for example the Sun WebServer, which is part of the Solaris Server Intranet Extension, or the Sun Directory Services, part of Solaris for ISPs) or download the ANDIrand package from <a href="http://www.cosy.sbg.ac.at/~andi/">http://www.cosy.sbg.ac.at/~andi/</a>. If you use SUNWski, make a symbolic link /dev/urandom pointing to /dev/random. For more details, see Document ID27606 entitled &quot;Differing /dev/random support requirements within Solaris[TM] Operating Environments&quot;, available at <a href="http://sunsolve.sun.com">http://sunsolve.sun.com</a> .</p>

<p>It may be possible to use the Entropy Gathering Daemon (written in Perl!), available from <a href="http://www.lothar.com/tech/crypto/">http://www.lothar.com/tech/crypto/</a>.</p>

<h1 id="SunOS-4.x"><a class="permalink" href="perlsolaris.html#SunOS-4.x">#</a><a id="SunOS"></a>SunOS 4.x</h1>

<p>In SunOS 4.x you most probably want to use the SunOS ld, /usr/bin/ld, since the more recent versions of GNU ld (like 2.13) do not seem to work for building Perl anymore. When linking the extensions, the GNU ld gets very unhappy and spews a lot of errors like this</p>

<pre><code class="plaintext">... relocation truncated to fit: BASE13 ...</code></pre>

<p>and dies. Therefore the SunOS 4.1 hints file explicitly sets the ld to be <i>/usr/bin/ld</i>.</p>

<p>As of Perl 5.8.1 the dynamic loading of libraries (DynaLoader, XSLoader) also seems to have become broken in in SunOS 4.x. Therefore the default is to build Perl statically.</p>

<p>Running the test suite in SunOS 4.1 is a bit tricky since the <i>dist/Tie-File/t/09_gen_rs.t</i> test hangs (subtest #51, FWIW) for some unknown reason. Just stop the test and kill that particular Perl process.</p>

<p>There are various other failures, that as of SunOS 4.1.4 and gcc 3.2.2 look a lot like gcc bugs. Many of the failures happen in the Encode tests, where for example when the test expects &quot;0&quot; you get &quot;&amp;#48;&quot; which should after a little squinting look very odd indeed. Another example is earlier in <i>t/run/fresh_perl</i> where chr(0xff) is expected but the test fails because the result is chr(0xff). Exactly.</p>

<p>This is the &quot;make test&quot; result from the said combination:</p>

<pre><code class="plaintext">Failed 27 test scripts out of 745, 96.38% okay.</code></pre>

<p>Running the <code>harness</code> is painful because of the many failing Unicode-related tests will output megabytes of failure messages, but if one patiently waits, one gets these results:</p>

<pre><code class="plaintext">Failed Test                     Stat Wstat Total Fail  Failed  List of Failed
-----------------------------------------------------------------------------
...
../ext/Encode/t/at-cn.t            4  1024    29    4  13.79%  14-17
../ext/Encode/t/at-tw.t           10  2560    17   10  58.82%  2 4 6 8 10 12
                                                               14-17
../ext/Encode/t/enc_data.t        29  7424    ??   ??       %  ??
../ext/Encode/t/enc_eucjp.t       29  7424    ??   ??       %  ??
../ext/Encode/t/enc_module.t      29  7424    ??   ??       %  ??
../ext/Encode/t/encoding.t        29  7424    ??   ??       %  ??
../ext/Encode/t/grow.t            12  3072    24   12  50.00%  2 4 6 8 10 12 14
                                                               16 18 20 22 24
 Failed Test                     Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------------
../ext/Encode/t/guess.t          255 65280    29   40 137.93%  10-29
../ext/Encode/t/jperl.t           29  7424    15   30 200.00%  1-15
../ext/Encode/t/mime-header.t      2   512    10    2  20.00%  2-3
../ext/Encode/t/perlio.t          22  5632    38   22  57.89%  1-4 9-16 19-20
                                                               23-24 27-32
../ext/List/Util/t/shuffle.t       0   139    ??   ??       %  ??
../ext/PerlIO/t/encoding.t                    14    1   7.14%  11
../ext/PerlIO/t/fallback.t                     9    2  22.22%  3 5
../ext/Socket/t/socketpair.t       0     2    45   70 155.56%  11-45
../lib/CPAN/t/vcmp.t                          30    1   3.33%  25
../lib/Tie/File/t/09_gen_rs.t      0    15    ??   ??       %  ??
../lib/Unicode/Collate/t/test.t              199   30  15.08%  7 26-27 71-75
                                                               81-88 95 101
                                                               103-104 106 108-
                                                               109 122 124 161
                                                               169-172
../lib/sort.t                      0   139   119   26  21.85%  107-119
op/alarm.t                                     4    1  25.00%  4
op/utfhash.t                                  97    1   1.03%  31
run/fresh_perl.t                              91    1   1.10%  32
uni/tr_7jis.t                                 ??   ??       %  ??
uni/tr_eucjp.t                    29  7424     6   12 200.00%  1-6
uni/tr_sjis.t                     29  7424     6   12 200.00%  1-6
56 tests and 467 subtests skipped.
Failed 27/811 test scripts, 96.67% okay. 1383/75399 subtests failed,
  98.17% okay.</code></pre>

<p>The alarm() test failure is caused by system() apparently blocking alarm(). That is probably a libc bug, and given that SunOS 4.x has been end-of-lifed years ago, don&#39;t hold your breath for a fix. In addition to that, don&#39;t try anything too Unicode-y, especially with Encode, and you should be fine in SunOS 4.x.</p>

<h1 id="AUTHOR"><a class="permalink" href="perlsolaris.html#AUTHOR">#</a>AUTHOR</h1>

<p>The original was written by Andy Dougherty <i>doughera@lafayette.edu</i> drawing heavily on advice from Alan Burlison, Nick Ing-Simmons, Tim Bunce, and many other Solaris users over the years.</p>

<p>Please report any errors, updates, or suggestions to <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
